<tr>
    <td style="text-align: center">
        <span class="label label-default">{$teacher['teacher_id']}</span>
        {if $teacher['teacher_type'] == 1}<span class="label label-success">业务老师</span>
        {elseif $teacher['teacher_type'] == 2}
        <span class="label label-success">咨询老师</span>
        {/if}
    </td>

    <td>
        {if empty($teacher['teacher_avatar'])}
        <img style="width:100px;height:140px;" src="{MODULE_URL}template/public/img/empty.png"/>
        {else}
        <img style="width:100px;height:140px;" src="{$_W['attachurl']}{$teacher['teacher_avatar']}"/>
        {/if}
    </td>

    <td style="text-align: center">{$teacher['teacher_name']}</td>

    <td>{$teacher['teacher_specialty']}</td>

    <td>{$teacher['teacher_intro']}</td>

    <td style="text-align: center">
        {if !empty($teacher['openid'])}
        <img style="width:60px;height:60px;border-radius:50%;" src="{php echo getavatar($_W['uniacid'],$teacher['openid']);}"/>
        <br/>
        {php echo getnickname($_W['uniacid'],$teacher['openid']);}
        {else}
        <span class="label label-danger">暂未绑定</span>
        {/if}
    </td>

    <td style="text-align: center">
        {if $teacher['teacher_pid'] == 1}
        <a class="btn btn-default" href="{php echo $this->createwebUrl('teacher',array('op'=>'teacher_post','teacher_id'=>$teacher['teacher_id']));}" role="button" title="还原">
            <i class="fa fa-repeat fa-fw"></i>
        </a>

        <a onclick="delcfm()" class="btn btn-default" href="{php echo $this->createwebUrl('teacher',array('op'=>'teacher_delete','teacher_id'=>$teacher['teacher_id']));}" role="button" title="删除">
            <i class="fa fa-trash-o fa-fw"></i>
        </a>
        {else}
        <a class="btn btn-default" href="{php echo $this->createwebUrl('teacher',array('op'=>'teacher_post','teacher_id'=>$teacher['teacher_id']));}" role="button" title="编辑">
            <i class="fa fa-pencil fa-fw"></i>
        </a>

        <a class="btn btn-default" href="{php echo $this->createwebUrl('teacher',array('op'=>'teacher_throw','teacher_id'=>$teacher['teacher_id']));}" role="button" title="放入回收站">
            <i class="fa fa-recycle fa-fw"></i>
        </a>
        {/if}
    </td>
<tr>